﻿@model PictureLinkModel

@using Telerik.Web.Mvc.UI;

@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.Id)
<table class="adminContent">
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.SystemName):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.SystemName)
            @Html.ValidationMessageFor(model => model.SystemName)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.DisplayText):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.DisplayText)
            @Html.ValidationMessageFor(model => model.DisplayText)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.DisplayOrder):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.DisplayOrder)
            @Html.ValidationMessageFor(model => model.DisplayOrder)
        </td>
    </tr>
     <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.Url):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.Url)
            @Html.ValidationMessageFor(model => model.Url)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.Alt):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.Alt)
            @Html.ValidationMessageFor(model => model.Alt)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.PictureId)
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.PictureId)
            @Html.ValidationMessageFor(model => model.PictureId)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.Visible):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.Visible)
            @Html.ValidationMessageFor(model => model.Visible)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.CollectionId):
        </td>
        <td class="adminData">

            @(Html.Telerik().DropDownListFor(model => model.CollectionId)
                .Name("CollectionId")
                .BindTo(Model.PicturelinkCollections)
                .Placeholder(T("Admin.Media.PictureLink.SelectPictureLinkCollections").Text)
            )

            @Html.ValidationMessageFor(model => model.CollectionId)
        </td>
    </tr>
@*
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.RelatedContentId):
        </td>
        <td class="adminData">

            @(Html.Telerik().DropDownListFor(model => model.RelatedContentId)
                .Name("RelatedContentId")
                .DataBinding(binding => binding.Ajax().Select("_GetDropDownListContents", "Media"))
                .Placeholder(T("Admin.Media.PictureLink.Collection.SelectContent").Text)
            )

            @Html.ValidationMessageFor(model => model.RelatedContentId)
        </td>
    </tr>
    *@
</table>
